# from django.conf import settings

from djangosphinx.models import SphinxSearch

from forum.models.question import Question
from forum_modules.sphinxfulltext.settings import SPHINX_SEARCH_INDICES

Question.add_to_class('search', SphinxSearch(
                                   index=' '.join(SPHINX_SEARCH_INDICES),
                                   mode='SPH_MATCH_ALL',
                                )
                      )
